package com.example.demo.mapper;

import com.example.demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import javax.naming.Name;
import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select *  from user")
    List<User> findAll();
    @Select("select *  from user where username=#{username}")
    User findUserByUserName(String username);
}
